package dk.dashboardFP.elements.buttonGroup {
	import dk.dashboardFP.panels.ui.text.DFPLabel;
	import dk.dashboardFP.elements.IElement;
	import dk.dashboardFP.elements.IElementHolder;

	import flash.display.Sprite;

	/**
	 * @author josef
	 */
	public class ButtonGroup extends Sprite implements IElementHolder, IElement {

		private var _sLabel : String;
		private var _doLabel : DFPLabel;

		public function ButtonGroup(sLabel : String = "") {
			_sLabel = sLabel;
			setupElements();
		}

		protected function setupElements() : void {
			
			//:::::::
			// label
			if (_sLabel != "") {
				
				_doLabel = new DFPLabel(_sLabel, false);
				addChild(_doLabel);
				
				_doLabel.y = 3;
				_doLabel.x = 3; 
			}
		}

		public function addElement(oElement : IElement) : IElement {
			return oElement;
		}

		public function get nBottomLine() : Number {
			return y+30;
		}
	}
}
